package com.cool.common;


/**
 * 响应错误代码
 *
 * @author Jiangmanman
 * @date 2020/07/23
 */
public interface ResponseCode {
    /**
     * 正常的
     *
     * @date 2020/07/23
     */
    String NORMAL = "00000";

    /**
     * 用户端错误
     *
     * @date 2020/07/23
     * @see String
     */
    String CLIENTERROR = "A0001";


    /**
     * 用户帐户不存在
     *
     * @date 2020/07/24
     * @see String
     */
    String USER_ACCOUNT_DOES_NOT_EXIST = "A0201";
    /**
     * 用户密码错误
     *
     * @date 2020/07/24
     * @see String
     */
    String USER_PASSWORD_MISTAKE = "A0210";
    /**
     * 用户登录成功
     *
     * @date 2020/07/24
     * @see String
     */
    int USER_LOGIN_SUCCESS =2001;
    /**
     * 用户登录失败
     *
     * @date 2020/07/24
     */
    int USER_LOGIN_FAIL = 4001;

    /**
     * 删除成功
     *
     * @date 2020/07/27
     * @see Integer
     */
    Integer DELETE_SUCCESS = 2002;

    /**
     * 删除失败
     *
     * @date 2020/07/27
     * @see Integer
     */
    Integer DELETE_FAILURE = 4002;

    /**
     * 页面查询成功
     *
     * @date 2020/07/27
     * @see Integer
     */
    Integer PAGE_QUERY_SUCCESS = 2003;
    Integer ADD_ACCOUNT_SUCCESS = 2004;
    Integer ADD_ACCOUNT_FAILURE = 4003;
    Integer USER_QUERY_FAILURE = 4005;
    /**
     * 角色查询失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer ROLE_QUERY_FAILURE = 4007;
    /**
     * 角色插入失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer ROLE_INSERT_FAILURE = 2005;
    /**
     * menun queryall失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer MENUN_QUERYALL_FAILURE = 2225;
    /**
     * 菜单更新失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer MENU_UPDATE_FAILURE = 4008;
    /**
     * 菜单创建失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer MENU_CREATE_FAILURE = 4009;
    /**
     * 允许插入失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer PERMISSION_INSERT_FAILURE = 4010;
    /**
     * 允许删除失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer PERMISSION_DELETE_FAILURE = 4011;
    /**
     * 允许更新失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer PERMISSION_UPDATE_FAILURE = 4012;
    /**
     * 分类删除失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer CLASSIFY_DELETE_FAILURE = 4013;
    /**
     * 分类插入失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer CLASSIFY_INSERT_FAILURE = 4014;
    /**
     * 分类更新失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer CLASSIFY_UPDATE_FAILURE = 4005;
    /**
     * 角色权限查询失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer ROLE_PERMISSION_QUERY_FAILURE = 4006;
    /**
     * 菜单分配失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer MENU_ALLOC_FAILURE = 4007;
    /**
     * 许可否认
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer PERMISSION_DENY = 4008;
    /**
     * 文件上传失败
     *
     * @date 2020/08/01
     * @see Integer
     */
    Integer FILE_UPLOAD_FAILURE = 4009;
    Integer FILE_UPLOAD_SUCCESS = 2012;
}
